package cn.iune.platform.dictionary;

import java.text.ParseException;
import java.util.List;

import com.alibaba.fastjson.JSONObject;

import cn.iune.common.base.IBizDataIface;

public interface IRegionInfoService extends IBizDataIface {

	RegionInfo getByID(String fID);

	List<RegionInfo> getAll();

	List<RegionInfo> getChilds(String fParent);

	void delete(String fID);


	List<String> getRootIDs(String provider);

	List<String> getChildIDs(String fParent);

	//获取ids
	List<String> getIDsByParent(String fParent, String provider);

	//更新sortNo
	int updateSortNo(RegionInfo fs, String sortNo);

	//排序
	int sortGroupInfo(String parentID, List<String> ids/*,List<Integer> versions*/);

	List<RegionInfo> getChildren(String fParent);

	List<RegionInfo> getProvinces();

	List<RegionInfo> getRoots();

	List<RegionInfo> getChildsByFullName(String fullName, String nodeType);

	RegionInfo getByName(String regionName, String nodeType);

	JSONObject save(JSONObject object) throws ParseException;

}